import { BroadCastCall } from "../../broadCast/BroadCastCall";
import { MessageBlock } from "../../../../../Framework/MQ/MessageBlock";
import { SSeqSSpaInfo } from "../../../../../Message/Public/SSeqSSpaInfo";
import { SpaLiseCellData } from "../../../view/spa/data/SpaLiseCellData";
import { NetDispatcher } from "../../../../mvc/core/NetDispatcher";
import { ServerCommand } from "../../../mvc/ServerCommand";
//class SpaGetSpaListCommand
    
    export  class SpaGetSpaListCommand extends BroadCastCall
    {
        constructor(arg1: Object)
        {
            super(arg1);
            return;
        }

        public /* override */ call(arg1: MessageBlock): void
        {
            var loc4=null;
            var loc5=null;
            super.call(arg1);
            var loc1=arg1.messageBase as SSeqSSpaInfo;
            var loc2=1;
            var loc3=[];
            var loc6=0;
            var loc7=loc1.spaInfos;
            for(loc4 of loc7) 
            {
                (loc5 = new SpaLiseCellData()).num = loc2;
                loc5.spaInfo = loc4;
                loc3.push(loc5);
                ++loc2;
            }
            NetDispatcher.dispatchCmd(ServerCommand.SpaGetSpaList, loc3);
            return;
        }
    }
